package com.perfma.xtest.tool.word;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.util.List;

/**
 * @author: junhui.si
 * @date: 2021-08-24 17:43
 **/
@NoArgsConstructor
@AllArgsConstructor
@Data
@ApiModel("（通用）统计-图表数据结构")
public class ChartDataVO {
    @ApiModelProperty("图表数据类型")
    private ChartDataType chartDataType;
    @ApiModelProperty("图表标题")
    private String title;
    @ApiModelProperty("x轴标题")
    private String xTitle;
    @ApiModelProperty("y轴标题")
    private String yTitle;
    @ApiModelProperty("x轴数据类型")
    private DataType xType;
    @ApiModelProperty("y轴数据类型")
    private DataType yType;
    @ApiModelProperty("数据")
    private List<ChartDataItemVO> chartDataItemVOList;

    public enum DataType {
        /**
         * 时间类型
         */
        TIMESTAMP,
        /**
         * 整数
         */
        LONG,
        /**
         * 字符串
         */
        STRING
    }
}
